# 打印星形矩形
row = 4
cols = 5
for i in range(row):
    for j in range(cols):
        print("*", end='')
    print()

# 打印正三角形
"""
    *     i=1 
   ***    i=2
  *****   i=3
 *******  i=4
*********
"""
n = 7
for i in range(n):
    print(" "*(n-1-i) + "*"*(i*2-1), end="")
    print()

# 打印平行四边形
for i in range(n):
    print(" "*(7-i) + "*"*7, end='')
    print()
